package com.hanxiaozhang.order.feign;

import com.hanxiaozhang.order.entity.User;
import com.hanxiaozhang.order.feign.fallback.OldOrderFeignHystrixFallbackFactory;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * 功能描述: <br>
 * 〈UserFeignClient〉
 *
 * @Author:hanxinghua
 * @Date: 2020/7/3
 */
@FeignClient(name = "springcloud-provider-order",fallbackFactory = OldOrderFeignHystrixFallbackFactory.class)
public interface OldOrderFeignHystrixClient {

  @GetMapping("/{id}")
  User findById(@PathVariable("id") Long id);

}
